跳到主要内容

loadModule

Defines the method used to load a remotely located text resource.

Syntax

expression.loadModule(url, callback);

expression - A variable that represents a Plugin class.

Parameters

NameRequired/OptionalData typeDefaultDescription
urlRequiredstringThe resource code URL.
callbackRequiredfunctionThe result that the method returns.

Returns

This method doesn't return any data.

Example

window.Asc.plugin.loadModule("./vendor/highlight/styles/" + e.params.data.id , function(content) {
var style_value = content;
if (isDE || isFF) {
$("#jq_color").spectrum("set", (hexc($(container).css('backgroundColor'))));
} else {
background_color.value = hexc($(container).css('backgroundColor'));
}
});